import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login.vue'
import Test from '../components/test.vue'
import Manager from '../components/Manager.vue'
import Shop from '../components/Shop.vue'
import Warehouse from '../components/Warehouse.vue'
import CategoriesD from '../components/CategoriesD.vue'
import AddGoods from '../components/AddGoods.vue'
import CategoriesX from '../components/CategoriesX.vue'
import Channel from '../components/Channel.vue'
import Goods  from '../components/Goods.vue'
import Group from '../components/Group.vue'
import Parameter from '../components/Parameter.vue'
import Brand from '../components/Brand.vue'
import Member from '../components/Member.vue'
import Zhanghao from '../components/Zhanghao.vue'
import Juese from '../components/Juese.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Login
    },
    {
      path: '/manager',
      component: Manager,
       children:[
         {
           path: '/shop',
           component: Shop
         },
         {
           path: '/warehouse',
           component: Warehouse
         },
         {
           path: '/categoriesd',
           component: CategoriesD
         },
         {
           path: '/categoriesx',
           component: CategoriesX
         },
         {
           path: '/channel',
           component: Channel
         },
         {
           path: '/goods',
           component: Goods,
           children:[
             {
               path:"/addGoods",
               component:AddGoods
             }
           ]
         },
         {
           path: '/group',
           component: Group
         },
         {
           path: '/parameter',
           component: Parameter
         },
         {
           path: '/brand',
           component: Brand
         },

         {
           path: '/zhanghao',
           component: Zhanghao
         },
         {
           path: '/juese',
           component: Juese
         },
         {
           path: '/member',
           component: Member
         },
       ]
    },
    {
      path:"/test",
      component:Test
    }
  ]
})
